#include "StdAfx.h"
#include "FlyWithWingsStrategy.h" 
#include <iostream>
using namespace std;

FlyWithWingsStrategy::FlyWithWingsStrategy():
m_positionX(0),
m_positionY(0),
m_speed(10),
m_angle(0)
{
}

FlyWithWingsStrategy::~FlyWithWingsStrategy()
{
}

void FlyWithWingsStrategy::fly()
{	
	m_positionX += m_speed * (int) cos(m_angle);
	m_positionY += m_speed * (int) sin(m_angle);
	cout << "fly to x=" << m_positionX << " y=" << m_positionY << endl;
}

void FlyWithWingsStrategy::right()
{
	cout << "turn right" << endl;
	m_angle -= 3.141592653589793238462643383279 / 2;
}